package com.ellricky.baselib.adapter;

import com.andr.common.ui.adapter.BaseRecyclerAdapter;
import com.andr.common.ui.adapter.SmartViewHolder;
import com.ellricky.baselib.R;

import java.util.Map;

public class TextGridAdapter extends BaseRecyclerAdapter<Map<String, String>> {

    public TextGridAdapter() {
        super(R.layout.base_adapter_text_grid);
    }

    @Override
    protected void onBindViewHolder(SmartViewHolder smartViewHolder, Map<String, String> model, int i) {
        smartViewHolder.text(R.id.tv_key, model.get("key"));
        smartViewHolder.text(R.id.tv_value, model.get("value"));
    }
}
